package com.mhc.suzuki.manager;

import com.subaru.common.query.PageResult;
import com.mhc.suzuki.dal.model.ProvinceDO;
import com.mhc.suzuki.dal.query.ProvinceQuery;

import java.util.List;


/**
 * Manager for Province.
 */
public interface ProvinceManager {
    /**
     * query count by query condition.
     */
    int countByQuery(ProvinceQuery query);

    /**
     * delete by query condition.
     */
    int deleteByQuery(ProvinceQuery query);

    /**
     * delete by primary key.
     */
    int deleteByPrimaryKey(ProvinceDO record);

    /**
     * insert selective.
     */
    long insertSelective(ProvinceDO record);

    /**
     * select by query condition.
     */
    List<ProvinceDO> selectByQuery(ProvinceQuery query);


    /**
     * select by query condition with page.
     */
    PageResult<ProvinceDO> selectByQueryWithPage(ProvinceQuery query);

    /**
     * select by primary key.
     */
    ProvinceDO selectByPrimaryKey(Long id);

    /**
     * update by query condition selective.
     */
    int updateByQuerySelective( ProvinceDO record,  ProvinceQuery query);

    /**
     * update by query condition.
     */
    int updateByQuery(ProvinceDO record, ProvinceQuery query);

    /**
     * update by primary key selective.
     */
    int updateByPrimaryKeySelective(ProvinceDO record);
}